TM-learn-sentences[splitter] sp
for each ket in the input sp,
split into a sequence using the given splitter operator
then learn the corresponding sentence sequences
with respect to the operators: sentence-raw, sentence-template, sentence-length, sentence-type, sentence-value
where:
sentence-raw is the unprocessed sentence
sentence-template is the raw sequence
sentence-length is the number of kets in that sequence
sentence-type is extract-head applied to the raw sequence
sentence-value is extract-value applied to the raw sequence
Note, it keeps track of the number of existing sentence nodes so as not to stomp on them
And if a given sentence is already known, then it is skipped
this operator is a member of the Template Machine set of operators